package edu.jd.movieplatform.search.c_point.impl;

import edu.jd.movieplatform.search.c_point.c_Point;
import edu.jd.movieplatform.search.c_point.c_PointService;
import edu.jd.movieplatform.search.c_point.dao.c_PointDao;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional
public class c_PointServiceImpl implements c_PointService {
    @Resource
    private c_PointDao pointDao;

    @Override
    public List<c_Point> getCinemaPoint(Integer cnm_id) {
        return pointDao.getCinemaPoint(cnm_id);
    }

    @Override
    public void updateCinemaPoint(Integer cnm_id, float m_point) {
        pointDao.updateCinemaPoint(cnm_id, m_point);
    }
}
